<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>监督会议管理</title>
<script>
	$(document)
			.ready(
					function() {
						$("input[name='partDate']").addClass("Wate").bind(
								"focus", function() {
									WdatePicker({
										skin : 'whyGreen',
										minDate : '1900-10-01',
										maxDate : '%y-%M-%d',
										dateFmt : 'yyyy-MM-dd'
									});
								});
						//聚焦第一个输入框
						$("#depCode").focus();
						//为inputForm注册validate函数
						$("#inputForm")
								.validate(
										{
											rules : {
												depCode : {
													required : true,
													remote : "department!checkDepCode.action?oldDepCode="
															+ encodeURIComponent('${depCode}')
												},
												depName : "required",
												burderMan : "required",
												depType : "required",
												contactTelephone : "digits",
												portraiture : "digits",
												staffers : "digits"
											},
											messages : {
												depCode : {
													remote : "<font color='red'>机构代码已存在</font>"
												}
											}
										});
					});
</script>
</head>
<body>
<form action="meeting!save.action" method="post" class="yform"
	id="inputForm" enctype="multipart/form-data">
<div id="caption">
<h6>监督会议信息</h6>
</div>
<div>
<table class="noborder">
	<tr class="type-text">
		<td>会议议题   </td>
		<td colspan="3"><input type="text" id="issue" name="issue"
			value="${issue}" class="required" /> <input type="hidden" name="id"
			value="${id}" /> <c:if test="${fn:length(id)==0}">
			<input type="hidden" id="projectId" name="pid"
				value="${param.projectId}" />
		</c:if> <c:if test="${fn:length(id)!=0}">
			<input type="hidden" id="projectId" name="pid" value="${pid}" />
		</c:if></td>
	</tr>
	<tr>
		<td>参会人员   </td>
		<td colspan="3"><input type="text" id="partner" name="partner"
			value="${partner}" class="required" /></td>
	</tr>

	<tr>
		<td>会议类型</td>
		<td><pt:code category="3010" name="type" default="${type}"></pt:code>
		</td>
		<td>参会日期</td>
		<td><input type="text" id="partDate" name="partDate"
			value="<fmt:formatDate value="${partDate}" pattern="yyyy-MM-dd" />"
			class="required" /></td>
	</tr>

	<tr class="type-text">
		<td>会议文件</td>
		<td colspan="3"><input type="file" name="attachmention.upfile" />
		</td>
		<c:if test="${not empty attachment.id}">
			<tr id="attachment">
				<td>已有附件</td>
				<td colspan="3"><a title="下载"
					href="${ctx}/servlet/annex?id=${attachment.id}">${attachment.upfileFileName}</a>
				<span onclick="deleteAttachment('${attachment.id}')" class="delete"
					title="删除附件"></span></td>
			</tr>
		</c:if>
	</tr>

	<tr class="type-text">
		<td>会议主要内容   </td>
		<td colspan="3">
			<textarea id="content" name="content">${content}</textarea></td>
	</tr>
	<tr>
		<td>存在问题   </td>
		<td colspan="3">
			<textarea id="matter" name="matter">${matter}</textarea></td>
	</tr>
	<tr class="type-text">
		<td>跟踪情况</td>
		<td colspan="3"><input type="text" id="dealResult"
			name="dealResult" value="${dealResult}" class="required" /></td>
	</tr>
	<tr class="type-text">
		<td>备注</td>
		<td colspan="3"><textarea id="remark" name="remark">${remark}</textarea></td>
	</tr>
	<tr>
		<td colspan="4">
		<div class="type-button"><input type="submit" class="submit"
			value="提交" />&nbsp; <input type="button" value="返回" class="reset"
			onclick="history.back()" /></div>
		</td>
	</tr>
</table>
</div>
</form>
</body>
</html>